package demo2;
public class Dog extends Animal{

    public void func() {
        super.func();
        System.out.println(this.name+"会狗叫！");
    }
}
